@charset "utf-8";
@import "reset";

.carousel_box {
	width: 50%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	padding-top: 28.1%;
	overflow: hidden;
	ul {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		font-size: 0;
		white-space: nowrap;
		transition: all 1s;
		li {
			display: inline-block;
			width: 100%;
			img {
				width: 100%;
			}
		}
	}
	// 箭头
	.arrow {
		position: absolute;
		top: 0;
		width: 20%;
		height: 100%;
		font-size: 36px;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: all .3s;
		cursor: pointer;
	}
	.left_arrow {
		left: 0;
		background: linear-gradient(90deg,gray,transparent);
		transform: translateX(-100%);
	}
	.right_arrow {
		right: 0;
		background: linear-gradient(90deg,transparent,gray);
		transform: translateX(100%);
	}
	&:hover .arrow {
		transform: translateX(0%);
	}
	// 点
	ol {
		position: absolute;
		bottom: 10%;
		left: 50%;
		transform: translateX(-50%);
		font-size: 0;
		transition: all .3s;
		li {
			width: 12px;
			height: 12px;
			margin: 0 4px;
			background-color: #fff;
			border-radius: 50%;
			display: inline-block;
			cursor: pointer;
			&:hover,&.active {
				background-color: #f00;
			}
		}
	}
	// &:hover ol {
	// 	bottom: 10%;
	// }
}